<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>背景</title>
</head>
<style>
  .back {
    height: 600px;
    width: 600px;
    border: 1px solid #333;
    background-image: url(https://yanxuan-item.nosdn.127.net/0dee0387a9cd03759b243bd4f887d223.png?type=webp&quality=95&thumbnail=180y180&imageView);
    /* background-size: 100% 100%; */

    /* 
    background-repeat
      no-repeat 不重复 
      repeat-x 水平方向重复
      repeat-y 垂直方向重复
    */
    background-repeat: repeat-x;
  }

  /* 雪碧图 优化网页的加载 */
  .img {
    height: 80px;
    width: 80px;
    border: 1px solid #333;
    background-image: url(./1.png);
    /* 圆角边框 */
    border-radius: 50%;
    /* 更改背景图片的位置，显示希望展示的内容 */
    background-position: -330px -30px;
  }
</style>
<body>
  <div class="back"></div>

  <div class="img"></div>
</body>
</html>